package com.peza.bikelog.gui.views;
import com.vaadin.ui.FormLayout;
import com.vaadin.ui.NativeSelect;
import com.vaadin.ui.Panel;
import com.vaadin.ui.TextField;


public class DetailsView extends Panel{

	private static final long serialVersionUID = 1L;

	private TextField id;
	
	private TextField date;
	
	private TextField location;
	
	private TextField duration;
	
	private NativeSelect bike;
	
	private NativeSelect surface;
	
	private TextField distance;
	
	private TextField zone;
	
	private TextField ascend;
	
	private TextField ahb;
	
	private TextField mhb;
	
	private TextField kcal;
	
	private TextField recPerc;
	
	private TextField d1Perc;
	
	private TextField d2Perc;
	
	private TextField d3Perc;
	
	private TextField maxPerc;
	
	
	
	public DetailsView(){
		
		
		FormLayout form = new FormLayout();
		
		id = new TextField("ID");
		date = new TextField("Date : ");
		location = new TextField("Location : ");
		duration = new TextField("Duration : ");
		bike = new NativeSelect("Bike : ");
		surface = new NativeSelect("Surface : ");
		distance = new TextField("Distance : ");
		zone = new TextField("Zone : ");
		ascend = new TextField("Ascent : ");
		ahb = new TextField("Ahb : ");
		mhb = new TextField("Mhb : ");
		kcal = new TextField("Kcal : ");
		recPerc = new TextField("REC % : ");
		d1Perc = new TextField("D1 % : ");
		d2Perc = new TextField("D2 % : ");
		d3Perc = new TextField("D3 % : ");
		maxPerc = new TextField("MAX % : ");		
		
		form.addComponent(id);
		form.addComponent(date);
		form.addComponent(location);
		form.addComponent(duration);
		form.addComponent(bike);
		form.addComponent(surface);
		form.addComponent(distance);
		form.addComponent(zone);
		form.addComponent(ascend);
		form.addComponent(ahb);
		form.addComponent(mhb);
		form.addComponent(kcal);
		form.addComponent(recPerc);
		form.addComponent(d1Perc);
		form.addComponent(d2Perc);
		form.addComponent(d3Perc);
		form.addComponent(maxPerc);
		
		this.setContent(form);
		
	}
	
	
	
}
